package com.lsongh.model;

public class Student {
    private Integer stuentId;

    private String studentAddress;

    private String studentName;

    private String studentPhone;

    private String studentSex;

    public Student(String studentAddress, String studentName, String studentSex, String studentPhone) {
        this.studentAddress = studentAddress;
        this.studentName = studentName;
        this.studentSex = studentSex;
        this.studentPhone = studentPhone;
    }

    public Integer getStuentId() {
        return stuentId;
    }

    public void setStuentId(Integer stuentId) {
        this.stuentId = stuentId;
    }

    public String getStudentAddress() {
        return studentAddress;
    }

    public void setStudentAddress(String studentAddress) {
        this.studentAddress = studentAddress == null ? null : studentAddress.trim();
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName == null ? null : studentName.trim();
    }

    public String getStudentPhone() {
        return studentPhone;
    }

    public void setStudentPhone(String studentPhone) {
        this.studentPhone = studentPhone == null ? null : studentPhone.trim();
    }

    public String getStudentSex() {
        return studentSex;
    }

    public void setStudentSex(String studentSex) {
        this.studentSex = studentSex == null ? null : studentSex.trim();
    }
/*重写头toString方法，方便将查询出来的学生信息打印*/
    @Override
    public String toString() {
        return "Student{" +
                "stuentId=" + stuentId +
                ", studentName='" + studentName + '\'' +
                ", studentAddress='" + studentAddress + '\'' +
                ", studentPhone='" + studentPhone + '\'' +
                ", studentSex='" + studentSex + '\'' +
                '}';
    }
}